*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #222;
}
.loader{
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(35deg) rotateZ(345deg);
    animation: animate 4s linear infinite;
}
@keyframes animate{
    0% {
        transform: rotateX(35deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(35deg) rotateZ(360deg);
    }
}
.loader span {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(24px);
    transition: 2.5s;
}
.loader i{
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: 2.5s;
}
.loader i::before {
    content: '';
    position: absolute;
    inset: 15px;
    background: linear-gradient(45deg, #ff0080, #ff8c00);
    transform: translateZ(-90px);
}

.loader i::after {
    content: '';
    position: absolute;
    inset: 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    transform: translateZ(90px);
}
.loader:hover i,
.loader:hover span {
    transform: rotateX(360deg);
}